package com.woniu.order.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 优惠券表
 * </p>
 *
 * @author linxin
 * @since 2023-02-18
 */
@Data
@TableName("t_coupons")
@ApiModel(value = "Coupons对象", description = "优惠券表")
public class Coupons implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("优惠券ID")
      @TableId(value = "id", type = IdType.ASSIGN_ID)
      private String id;

      @ApiModelProperty("优惠券名字")
      private String couponsName;

      @ApiModelProperty("优惠券金额")
      private BigDecimal couponsPrice;

      @ApiModelProperty("优惠券状态;0:有效 1:过期")
      private String status;

      @ApiModelProperty("优惠券类型；0--可用 1--不可用")
      private String type;

      @ApiModelProperty("逻辑删除;0:正常 1:删除")
      private String isDeleted;

      @ApiModelProperty("创建时间")
      private Date createdTime;

      @ApiModelProperty("优惠券开始时间")
      private Date startTime;

      @ApiModelProperty("优惠券库存")
      private Integer stock;

      @ApiModelProperty("修改时间")
      private Date updatedTime;
}
